package com.why.day05_work3.base;

import android.app.Application;
import android.content.Context;
import android.content.res.Resources;

import com.umeng.commonsdk.UMConfigure;
import com.umeng.socialize.PlatformConfig;

import java.util.ResourceBundle;


public class BaseApp extends Application {

    public static Context sContext;

    public static Resources getRes() {
        return sContext.getResources();
    }

    @Override
    public void onCreate() {
        super.onCreate();
        sContext = this;


        initUmeng();
    }

    private void initUmeng() {
        UMConfigure.setLogEnabled(true);
        UMConfigure.init(this,"5a12384aa40fa3551f0001d1"
                ,"umeng",UMConfigure.DEVICE_TYPE_PHONE,"");


        PlatformConfig.setWeixin("wxdc1e388c3822c80b", "3baf1193c85774b3fd9d18447d76cab0");

        PlatformConfig.setSinaWeibo("223474045", "521520121676921eb24228a2c140543a",
                "http://sns.whalecloud.com");
        PlatformConfig.setQQZone("101887793", "d2a9ec70a334ceca7a133f64a4133c36");
        PlatformConfig.setQQFileProvider("com.tencent.sample2.fileprovider");
    }
}
